package com.example.dzbsh.service;

import com.example.dzbsh.dao.DictZhiwuMapper;
import com.example.dzbsh.model.DictZhiwu;
import com.example.dzbsh.model.DictZhiwuExample;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class DictZhiwuService {

    @Resource
    DictZhiwuMapper ddMapper;

    public List<DictZhiwu> findAll(){
        DictZhiwuExample mmExample = new DictZhiwuExample();
        mmExample.setOrderByClause("ordernum");
        return ddMapper.selectByExample(mmExample);
    }

}
